package model

import (
	"time"

	"gorm.io/gorm"
)

type DcModel struct {
	Id        uint           `json:"id" gorm:"comment:id;primarykey;autoIncrement;"`
	CreatedAt time.Time      `json:"created_at"`
	CreatedBy string         `json:"created_by" gorm:"index;"`
	UpdatedAt time.Time      `json:"updated_at"`
	UpdatedBy string         `json:"updated_by"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
	DeletedBy *string        `json:"deleted_by"`
	Sort      uint           `json:"sort" gorm:"comment:排序;default:1;"`
	Source    *string        `json:"source" gorm:"comment:数据来源;default:user;type:varchar(10);"`
	Status    string         `json:"status" gorm:"comment:状态;default:on;type:varchar(10);"`
	Memo      *string        `json:"memo" gorm:"comment:备注描述;type:text;"`
}
